import request from '@/utils/request'
export function login(data) {
  return request({
    url: '/online/authorization/auth/login', data, method: 'POST'
  })
}
export function logout(data) {
  return request({
    url: '/online/authorization/auth/logout', data, method: 'POST'
  })
}
export function changePsw(data) {
  return request({
    url: '/online/authorization/auth/password/change', data, method: 'POST'
  })
}
export function register(data) {
  return request({
    url: '/online/authorization/register/developer', data, method: 'POST'
  })
}
export function timestamp(params) {
  return request({
    url: '/online/authorization/auth/timestamp', params, method: 'GET'
  })
}
export function balance(params) {
  return request({
    url: '/online/developer/balance', params, method: 'GET'
  })
}
export function appSummary(appId) {
  return request({
    url: `/online/developer/app/info/summary${appId}`, method: 'GET'
  })
}
export function getInfo() {
  return request({
    url: '/online/authorization/auth/user/info', method: 'GET'
  })
}
